package cn.blunce.updatetest.activities;

import cn.blunce.updatetest.updateutils.DialogHelper;
import cn.blunce.updatetest.updateutils.MyUpdateCallBack;
import cn.blunce.updatetest.R;
import cn.blunce.updatetest.updateutils.UpdateManager;
import android.app.Activity;
import android.app.ProgressDialog;
import android.content.DialogInterface;
import android.os.Bundle;
import android.util.Log;

public class MainActivity extends Activity {
	private UpdateManager updateManager;
	private ProgressDialog updateProgressDialog;
	private UpdateManager.UpdateCallback updateCallback;

	@Override
	protected void onCreate(Bundle savedInstanceState) {
		// TODO Auto-generated method stub
		super.onCreate(savedInstanceState);
		setContentView(R.layout.main_activity);
		updateManager = new UpdateManager(MainActivity.this, null);
		updateManager.setCallback(new MyUpdateCallBack(updateManager, this));
		updateManager.checkUpdate();
	}

}
